import { Toast } from 'mint-ui';
import "mint-ui/lib/style.css";
// function toast(msg) {
//   /*提示消息*/
//   Toast({ message: msg, duration: 1700, className: 'toastStyle' }) //提示消息：this.Toast('操作成功');
// };
export function toast(msg , time ) {
  if( msg ) {
    let duration = 1500;
    if( time && typeof time == 'number' ){
      duration = time;
    }
    Toast({ message: msg, duration: duration, className: 'toastStyle' })
  }
}
